{
 "cells": [
  {
   "cell_type": "markdown",
   "id": "b117e5fd",
   "metadata": {},
   "source": [
    "# 1.P4项目"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 1,
   "id": "b63ef131",
   "metadata": {},
   "outputs": [],
   "source": [
    "from datetime import datetime"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "id": "a8024012",
   "metadata": {},
   "outputs": [],
   "source": [
    "odds = [1,3,5,7,9,11,13,15,17,19,\n",
    "       21,23,25,27,29,31,33,35,37,\n",
    "       39,41,43,45,47,49,51]"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 5,
   "id": "50eb89c1",
   "metadata": {},
   "outputs": [],
   "source": [
    "right_this_minute = datetime.today().minute"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 6,
   "id": "9ec3e8ba",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Not an odd minute.\n"
     ]
    }
   ],
   "source": [
    "if right_this_minute in odds:\n",
    "    print(\"This minute seems a little odd.\")\n",
    "else:\n",
    "    print(\"Not an odd minute.\")"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "3c84d1b1",
   "metadata": {},
   "source": [
    "# 2.if是什么"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "d60bf036",
   "metadata": {},
   "source": [
    "> Python 编程中 if 语句用于控制程序的执行"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "3adf7742",
   "metadata": {},
   "source": [
    "# 3.from是什么"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "85ebc45b",
   "metadata": {},
   "source": [
    "> from是 python中的一个关键字 (区分大小写)，用于从模块中导入特定部分"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "cd97a045",
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3 (ipykernel)",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.9.12"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
